package io.mft.runtime.config.impl;

import java.util.Map;
import java.util.Properties;

import io.mft.commons.config.ConfigProvider;
import io.mft.runtime.config.ConfigLoader;

public class ApplicationConfigLog4jLoader implements ConfigLoader<Properties> {

	@Override
	public Properties load(String appId) {
		Properties properties = log4jProperties();
		return properties;
	}

	private Properties log4jProperties() {
		Properties properties = new Properties();
		Map<String, Object> map=ConfigProvider.getHostProgramNamespaceConfigObject("log4j");
		if (map==null) {
			return properties;
		}
		properties.putAll(map);
		return properties;
	}
}
